import request from '@/utils/request'

// 查询部门列表
export function findPage(query) {
  return request({
    url: '/b/project/config/findPage',
    method: 'POST',
    data:query
  })
}

// 新增分类
export function saveConfig(data) {
  return request({
    url: '/b/project/config/saveConfig',
    method: 'POST',
    data:data
  })
}

// 修改分类
export function modifyConfig(data) {
  return request({
    url: '/b/project/config/modifyConfig',
    method: 'POST',
    data:data
  })
}

// 删除分类
export function delConfig(id) {
  return request({
    url: '/b/project/config/delConfig?configId='+id,
    method: 'GET'
  })
}

// 修改部门
export function modifyStts(data) {
  return request({
    url: '/b/project/config/modifyStts',
    method: 'POST',
    data:data
  })
}

